import type { PageParams } from './commonType'

export interface CreateParams {
  roleName: string
  remark?: string
}

export interface RoleItem extends CreateParams {
  _id: string
  updateTime: Date
  createTime: Date
  permissionList: {
    checkedKeys?: string[]
    halfCheckedKeys: string[]
  }
}

export interface Params extends PageParams {
  roleName?: string
}

export interface EditParams extends CreateParams {
  _id: string
}

export interface CreatePermission {
  _id: string
  permissionList: {
    checkedKeys?: string[]
    halfCheckedKeys?: string[]
  }
}
